package com.brother.model;

import java.util.Date;

import com.brother.alarm.AlarmObserver;


public class RealTimeData {
private int realTimedataId;
private String trackerid;
private int userId;
private int alarmId;
public int getAlarmId() {
	return alarmId;
}
public void setAlarmId(int alarmId) {
	this.alarmId = alarmId;
}
private int pageSize;
private String orderCondition;
private String topCondition = "limit 0,10000";
private String comment;
private String language = "en";
private AlarmObserver alarmObserver;
public void setAlarmObserver(AlarmObserver o){
	this.alarmObserver = o;
	this.alarmObserver.setRealTimeData(this);
}
public String getLanguage() {
	return language;
}
public void setLanguage(String language) {
	this.language = language;
}
public String getComment() {
	return comment;
}
public void setComment(String comment) {
	this.comment = comment;
}
public String getTopCondition() {
	return topCondition;
}
public void setTopCondition(String topCondition) {
	this.topCondition = topCondition;
}
public String getOrderCondition() {
	return orderCondition;
}
public void setOrderCondition(String orderCondition) {
	this.orderCondition = orderCondition;
}
public int getPageSize() {
	return pageSize;
}
public void setPageSize(int pageSize) {
	this.pageSize = pageSize;
}
public int getRealTimedataId() {
	return realTimedataId;
}
public void setRealTimedataId(int realTimedataId) {
	this.realTimedataId = realTimedataId;
}
public String getTrackerid() {
	return trackerid;
}
public void setTrackerid(String trackerid) {
	this.trackerid = trackerid;
}
public int getUserId() {
	return userId;
}
public void setUserId(int userId) {
	this.userId = userId;
}
public String getTraceTime() {
	return traceTime;
}
public void setTraceTime(String traceTime) {
	this.traceTime = traceTime;
}
public String getAddress() {
	return address;
}
public void setAddress(String address) {
	this.address = address;
}
public String getOrig_lat() {
	return orig_lat;
}
public void setOrig_lat(String orig_lat) {
	this.orig_lat = orig_lat;
}
public String getOrig_lng() {
	return orig_lng;
}
public void setOrig_lng(String orig_lng) {
	this.orig_lng = orig_lng;
}
public float getLat() {
	return lat;
}
public void setLat(float lat) {
	this.lat = lat;
}
public float getLng() {
	return lng;
}
public void setLng(float lng) {
	this.lng = lng;
}
public float getSpeed() {
	return speed;
}
public void setSpeed(float speed) {
	this.speed = speed;
}
public String getSignal() {
	return signal;
}
public void setSignal(String signal) {
	this.signal = signal;
}
public String getOrient() {
	return orient;
}
public void setOrient(String orient) {
	this.orient = orient;
}
public String getDistance() {
	return distance;
}
public void setDistance(String distance) {
	this.distance = distance;
}
public String getState() {
	return state;
}
public void setState(String state) {
	this.state = state;
}
private String traceTimeTo;
public String getTraceTimeTo() {
	return traceTimeTo;
}
public void setTraceTimeTo(String traceTimeTo) {
	this.traceTimeTo = traceTimeTo;
}

private Date traceDateTime;
public Date getTraceDateTime() {
	return traceDateTime;
}
public void setTraceDateTime(Date traceDateTime) {
	this.traceDateTime = traceDateTime;
}

public void ckeckTriggerredAlarm(){
	this.setState(this.alarmObserver.getTriggerredAlarm().toString());
	this.setAlarmId(this.alarmObserver.getAlarmId());
}


public String getLatOrient() {
	return latOrient;
}
public void setLatOrient(String latOrient) {
	this.latOrient = latOrient;
}
public String getLngOrient() {
	return lngOrient;
}
public void setLngOrient(String lngOrient) {
	this.lngOrient = lngOrient;
}
private Tracker tracker;
public Tracker getTracker() {
	return tracker;
}
public void setTracker(Tracker tracker) {
	this.tracker = tracker;
}
private String latOrient;
private String lngOrient;
private String traceTime;
private String address;
private String orig_lat; //  度 分
private String orig_lng;  //  度分
private float lat;//  十进制 度数   10.0021度
private float lng;
private float speed;
private String signal;
private String orient;
private String distance;
private String state;


private String battery;
private String voltage;
private String fuel;
private String ad2;
private String flag;
private String temp;
private String temp2;
private Integer temp3;

public String getBattery() {
	return battery;
}
public void setBattery(String battery) {
	this.battery = battery;
}
public String getVoltage() {
	return voltage;
}
public void setVoltage(String voltage) {
	this.voltage = voltage;
}
public String getFuel() {
	return fuel;
}
public void setFuel(String fuel) {
	this.fuel = fuel;
}
public String getAd2() {
	return ad2;
}
public void setAd2(String ad2) {
	this.ad2 = ad2;
}
public String getFlag() {
	return flag;
}
public void setFlag(String flag) {
	this.flag = flag;
}
public String getTemp() {
	return temp;
}
public void setTemp(String temp) {
	this.temp = temp;
}
public String getTemp2() {
	return temp2;
}
public void setTemp2(String temp2) {
	this.temp2 = temp2;
}
public Integer getTemp3() {
	return temp3;
}
public void setTemp3(Integer temp3) {
	this.temp3 = temp3;
}



}
